﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DMS.DAL;

namespace DMS.Logic
{
    public class DBStorage
    {
		public int VersionID { get; set; }

		public DBStorage()
		{
			
		}
	
		public DBStorage(int versionId, string providerData)
		{
			VersionID = versionId;
			//process providerData
		}



		public void Write(byte[] data, int length)
		{
			byte[] d = new byte[length];
			Array.Copy(data, d,length);
			DAL.DALclass.getInstance().StoreFile(this.VersionID, d);
			
		}

        public void Dispose()
        {

        }
    }
}
